package backend;


public class User {
  public final String username;
  public final String password;
  public final String role; // "student" or "administrator"
  public final String name; // full name
  public final String phone;
  public final String address;
  
  public User(final String _username, final String _password, final String _role, final String _name,
      final String _phone, final String _address) {
    username = _username;
    password = _password;
    role = _role;
    name = _name;
    phone = _phone;
    address = _address;
  }
  
  public boolean isStudent() {
    return "student".equals(role);
  }
  
  public boolean isAdmin() {
    return "administrator".equals(role);
  }
}
